using System.Threading.Tasks;
using JNPF.Utils;
using System.Collections.Generic;
using JNPF.Basics.Models;

namespace JNPF.Basics.Logic
{
    public interface PointswithdrawalIService
    {
        /// <summary>
        /// 获取信息
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns></returns>
        Task<PointswithdrawalEntity> GetInfo(int id);

        /// <summary>
        /// 列表(分页)
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <returns></returns>
        Task<PageResult<PointswithdrawalListOutput>> GetPageList(PointswithdrawalListQueryInput input);

        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Create(PointswithdrawalEntity entity);

        /// <summary>
        /// 提现
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="userextendEntity"></param>
        /// <param name="partnerPointsdetails"></param>
        /// <returns></returns>
        Task Create(PointswithdrawalEntity entity, UserextendEntity userextendEntity, PointsdetailsEntity partnerPointsdetails);


        /// <summary>
        /// 审核
        /// </summary>
        /// <param name="pointswithdrawalEntity"></param>
        /// <param name="userextendEntity"></param>
        /// <param name="partnerPointsdetails"></param>
        /// <returns></returns>
        Task Examine(PointswithdrawalEntity pointswithdrawalEntity, UserextendEntity userextendEntity, PointsdetailsEntity partnerPointsdetails);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Update(PointswithdrawalEntity entity);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Delete(PointswithdrawalEntity entity);

        /// <summary>
        /// 列表
        /// </summary>
        /// <returns></returns>
        Task<List<PointswithdrawalEntity>> GetList(PointswithdrawalListQueryInput input);


    }
}
